<!DOCTYPE html>
<html>
<head>
    <title>Error</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 40px; }
        .error { color: red; }
    </style>
</head>
<body>
    <h1>发生错误</h1>
    <p class="error">{{ error }}</p>
    <a href="{% url 'home' %}">返回首页</a>
</body>
</html>